package com.hundun.hddeal.enums;


/**
 * 枚举
 */
public enum ResultEnum {
    SUCCESS(100,"操作成功"),
    FAIT(101,"操作失败"),
    LOGIN(102,"未登录"),
    USER_NOT_EXIST(103,"用户不存在"),
    DATA_EXIST(104,"数据不存在"),
    SERVICE_ERROR(-1,"未知错误"),
    ISOK(200,"存在公众号"),
    ISNULL(201,"不存在公众号"),
    ISNO(401,"token已过期");
    private int code;
    private String message;

    ResultEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
